home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1997 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  976 b   |  32 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          if(_root.even4 == 1)
  7.          {
  8.             _root.nogo.exit2._x = _root.lvl.hewitt._x;
  9.             _root.nogo.exit2._y = _root.lvl.hewitt._y;
  10.          }
  11.          else
  12.          {
  13.             _root.txt_time = 100;
  14.             _root.txt = "This seems to be an emergency exit and if I open it with the alarm on, I\'ll get in serious trouble.";
  15.          }
  16.       }
  17.       if(_root.micon._currentframe == 2)
  18.       {
  19.          if(_root.even4 == 1)
  20.          {
  21.             _root.txt_time = 75;
  22.             _root.txt = "Haha theres no stopping me! With the alarm broken I\'m free to walk through.";
  23.          }
  24.          else
  25.          {
  26.             _root.txt_time = 100;
  27.             _root.txt = "This seems to be an emergency exit and if I open it with the alarm on, I\'ll get in serious trouble.";
  28.          }
  29.       }
  30.    }
  31. }
  32.